package com.atguigu.delivery.dao.impl;

import com.atguigu.delivery.dao.BaseDao;
import com.atguigu.delivery.dao.api.CompanyDao;
import com.atguigu.delivery.entity.Company;

import java.util.List;

public class CompanyDaoImpl extends BaseDao implements CompanyDao {
    @Override
    public List<Company> selectAll() {
        String sql = "select id, company_name companyName from sys_company";
        return baseQuery(Company.class, sql);
    }
}
